package cn.com.chifeng.androidfilemanager;

import android.os.Environment;

import java.io.File;

import cn.com.chifeng.androidfilemanager.config.Action;

/**
 * Created by Administrator on 2017/5/25.
 */

public class FileUtils {
    // 判断sd卡是否可用
    public static File getAppExternalStorageFile() {

        if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
            return new File(Environment.getExternalStorageDirectory(), Action.APP_FILE_NAME);
        }
        return null;

    }
}
